# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=statsprocessor
pkgver=0.11
pkgrel=2
epoch=5
groups=('blackarch' 'blackarch-automation')
pkgdesc='A high-performance word-generator based on per-position Markov-attack.'
arch=('x86_64' 'aarch64')
url='http://hashcat.net/wiki/doku.php?id=statsprocessor'
license=('custom:unknown')
makedepends=('p7zip')
source=("https://github.com/jsteube/statsprocessor/releases/download/v$pkgver/statsprocessor-$pkgver.7z")
sha512sums=('b98bd6a35916da611160b536836163e0af887b58ddc489120396081b18e7fb6f5ba2a3fe51f0e9304df75ebc3e3f7f9608bfa5a79d2ce517ac8322eb63c7c4a6')

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/statsprocessor"

  binary='sp64.bin'

  install -Dm 755 $binary "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 hashcat.hcstat "$pkgdir/usr/share/$pkgname/hashcat.hcstat"
}

